
<%@page import="com.cn.dao.TiJianXiangmuDao"%>
<%@page import="java.util.Iterator"%>
<%@page import="com.cn.entity.TiJianxiangmu"%>
<%@page import="java.util.Set"%>
<%@page import="com.cn.dao.TaocanDao"%>
<%@page import="com.cn.entity.Taocan"%>
<%@page import="java.util.List"%>
<%@page import="com.cn.dao.DepartmentDao"%>
<%@page import="com.cn.entity.Department"%>
<%@page import="com.cn.entity.Doctor"%>
<%@page import="com.cn.dao.DoctorDao"%>


<%@ page language="java" contentType="text/html; charset=utf-8"
    pageEncoding="utf-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>北京医院</title>
</head>
<body>
<h4>套餐增加</h4>
<form action="TaocanAddAction" method="post">


<%double prices=0; %>

<table>

<tr>
<td>套餐名称</td>
<td><input type="text" name="taocan.taocanming"></td>
</tr>




</table>
<%TiJianXiangmuDao td=new TiJianXiangmuDao();
List<TiJianxiangmu> list=td.scanAll();

%>
<table>
<%for (int i=0;i<list.size();i++) { 
   TiJianxiangmu xiangmu=list.get(i);
%>
<tr><td><input type="checkbox" name="xiangmuming" value="<%=xiangmu.getXiangmuid()%>"><%=xiangmu.getXiangmuming() %> </td>   <td><%=xiangmu.getPrice()%></td></tr>

<%prices=prices+xiangmu.getPrice(); %>
<%} %>

<tr><td><input type="submit" value="新增"></td> <td><input type="hidden" name="taocan.price" value="<%=prices %>"></td></tr>
</table>


</form>
</body>
</html>